]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
thunderbolt: remove gdbus error prefix, if present
authorChristian Kellner <christian@kellner.me>
Thu, 19 Apr 2018 12:18:13 +0000 (14:18 +0200)
committerChristian Kellner <christian@kellner.me>
Fri, 20 Apr 2018 09:36:37 +0000 (11:36 +0200)
If we get an error during device enrollment, the message might be
prefixed to indicate that the error came from the remote peer. We
are presenting that message to the user so strip that prefix away
if it was there.

js/ui/status/thunderbolt.js

index ebd1c3eb1e9e3af644bff4f04d9a4422bc99481f..f3236f21c09abc207a0fe60a45b7ac1978af1b29 100644 (file)
@@ -144,6 +144,7 @@ var Client = new Lang.Class({
        this._proxy.EnrollDeviceRemote(id, policy, AuthFlags.NONE,
                                        (res, error) => {
            if (error) {
+               Gio.DBusError.strip_remote_error(error);
                callback(null, error);
                return;
            }